<?php

declare(strict_types=1);

namespace app\model\BbcLogModel;
use app\model\BaseModel\BaseBbcLogModel;

class RpcMicroServiceLog extends BaseBbcLogModel
{    
    protected $table = 'rpc_bbc_admin_microservice_log';
    public function addLog( $param = [] )
    {
        return $this->create([
            'interface_code'    => $param['interface_code'] ?? '',
            'request_url'       => $param['request_url'] ?? '',
            'request_param'     => $param['request_param'] ?? '',
            'response_code'     => $param['response_code'] ?? '',
            'response_data'     => $param['response_data'] ?? '',
            'req_used_time'     => $param['req_used_time'] ?? '',
            'cd'                => time(),
        ]);
    }    
}